package com.liuda.workbench.service.impl;

import com.liuda.workbench.domain.ActivityRemark;
import com.liuda.workbench.mapper.ActivityRemarkMapper;
import com.liuda.workbench.service.ActivityRemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ActivityRemarkServiceImpl implements ActivityRemarkService {
    @Autowired
    ActivityRemarkMapper activityRemarkMapper;
    @Override
    public List<ActivityRemark> queryRemarksByActivityId(String activityId) {
       return activityRemarkMapper.queryRemarksByActivityId(activityId);
    }

    @Override
    public int insertRemark(ActivityRemark activityRemark) {
        return activityRemarkMapper.insertSelective(activityRemark);
    }

    @Override
    public int updateRemark(ActivityRemark activityRemark) {
       return activityRemarkMapper.updateRemark(activityRemark);
    }

    @Override
    public int deleteRemark(String id) {
        return activityRemarkMapper.deleteByPrimaryKey(id);
    }

}
